package com.jianhua.appmarket.module.service.system;

import com.jianhua.appmarket.common.base.BaseService;
import com.jianhua.appmarket.common.exception.BussinessException;
import com.jianhua.appmarket.module.entity.system.User;
import com.jianhua.appmarket.module.model.system.UserParam;
import com.jianhua.appmarket.module.model.system.UserVO;

import java.util.List;

public interface IUserService extends BaseService<User> {

    UserVO login(User user) throws Exception;

    User findUserById(Long id);

    List<UserVO> listUsers(UserParam param,UserVO user);

    int countUsers(UserParam param, UserVO user);

    Boolean addOrEditUser(UserParam param, UserVO user) throws Exception;

    Boolean editUser(User param, UserVO user);

    Boolean deleteUser(Long userId,UserVO user);
}
